package light.head.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;
/**
 * 	政策支持
 */
@Entity
@Table
public class PolicySupport implements Serializable{
	private static final long serialVersionUID = 6266281734640435460L;
	private Integer code;					//流水号
	private String title;					//标题
	private String content;					//内容
	private Byte type;						//类型 (1.优惠政策 2.招商信息 3.申报项目)
	private Date rt;						//发布时间
	private Date topTime;					//置顶时间
	private Date ct;						//创建时间
	private String unit;					//发布单位
	private Integer cu;						//创建人
	private boolean deleted;				//是否删除
	private List<PolicySupportAnnex> list;	//附件
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column
	public Integer getCode() {
		return code;
	}
	@Column(length = 200)
	public String getTitle() {
		return title;
	}
	@Column(length = 50)
	public String getUnit() {
		return unit;
	}
	@Column(length = 10000)
	public String getContent() {
		return content;
	}
	@Column
	public Byte getType() {
		return type;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column
	public Date getRt() {
		return rt;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column
	public Date getTopTime() {
		return topTime;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(updatable = false, nullable = false)
	public Date getCt() {
		return ct;
	}
	@Column
	public Integer getCu() {
		return cu;
	}
	@Column
	public boolean getDeleted() {
		return deleted;
	}
	@Transient
	public List<PolicySupportAnnex> getList() {
		return list;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public void setType(Byte type) {
		this.type = type;
	}
	public void setRt(Date rt) {
		this.rt = rt;
	}
	public void setCt(Date ct) {
		this.ct = ct;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public void setCu(Integer cu) {
		this.cu = cu;
	}
	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}
	public void setTopTime(Date topTime) {
		this.topTime = topTime;
	}
	public void setList(List<PolicySupportAnnex> list) {
		this.list = list;
	}
	
}
